<?php

namespace api\controller;

// +----------------------------------------------------------------------
// | 属性值数据控制层
// +----------------------------------------------------------------------

use common\controller\VerifyController;
use common\service\StepCategoryAttributeService;
use think\Request;

class StepCategoryAttributeController extends VerifyController
{
    protected $stepCategoryAttributeService;

    /**
     * StepCategoryAttributeController constructor.
     */
    public function __construct()
    {
        parent::__construct();
        $this->stepCategoryAttributeService = new StepCategoryAttributeService();
    }


    /**
     * 查询分类的属性列表
     * @param Request $request
     * @return \think\Response
     */
    public function getAttributeList(Request $request)
    {
        $param = $request->param();
        $res = $this->stepCategoryAttributeService->getAttributeList($param['param']);
        return json(success_response('', $res));
    }

}
